package com.sophossystems.client.asmon.dto;

import java.io.Serializable;

public class RutaPkDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected int idRuta;
	protected boolean idRutaNull;
	
	
	
	/**
	 * @return the idRuta
	 */
	public int getIdRuta() {
		return idRuta;
	}

	/**
	 * @param idRuta the idRuta to set
	 */
	public void setIdRuta(int idRuta) {
		this.idRuta = idRuta;
		this.idRutaNull = false;
	}

	/**
	 * @return the idRutaNull
	 */
	public boolean isIdRutaNull() {
		return idRutaNull;
	}

	/**
	 * @param idRutaNull the idRutaNull to set
	 */
	public void setIdRutaNull(boolean idRutaNull) {
		this.idRutaNull = idRutaNull;
	}

	public RutaPkDTO(){
		
	}
	
	public RutaPkDTO (final int idRuta){
		this.idRuta= idRuta;
	}
	
	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	@Override
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof RutaPkDTO)) {
			return false;
		}
		
		final RutaPkDTO _cast = (RutaPkDTO) _other;
		if (idRuta != _cast.idRuta) {
			return false;
		}
		
		if (idRutaNull != _cast.idRutaNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	@Override
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idRuta;
		_hashCode = 29 * _hashCode + (idRutaNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	@Override
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.sophossystems.client.asmon.dto.RutaPkDTO: " );
		ret.append( "idRuta=" + idRuta );
		return ret.toString();
	}
}
